from shadersnip import *

#base_texture = Snippet(eval(open('base_texture.txt').read())[0])
#detail_tex = Snippet(eval(open('detail_tex.txt').read())[0])

#ps_combiner = PixelSnippetCombiner()
#ps_combiner.combine([base_texture, detail_tex])

defines = {'ps': (1, 1)}
base_texture_p = PixelShaderSnippet.from_file('base_texture.txt', defines)
detail_tex_p = PixelShaderSnippet.from_file('detail_tex.txt', defines)

psc = PixelSnippetCombiner()
psc.combine([base_texture_p, detail_tex_p])
